package com.jingbian.cppccbackend.service.admin;

import com.jingbian.cppccbackend.entity.News;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jingbian.cppccbackend.entity.vo.PageVO;

/**
 * <p>
 * 新闻表，用于存储新闻信息 服务类
 * </p>
 *
 * @author yezi
 * @since 2025-03-03
 */
public interface NewsService extends IService<News> {

    PageVO<News> getNews(Integer pageNum, Integer pageSize, String sortType, String startDate, String endDate, String searchText);

    void delete(Integer nid);


    void updateNews(Integer nid, News news);
}
